package cn.tedu.erp.project.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class RoleUpdateDTO implements Serializable {
    @ApiModelProperty(value = "角色名称", required = true, example = "网络管理员")
    @NotNull(message = "修改角色失败,必须填写名称!")
    /*角色名称*/
    private String name;

    @ApiModelProperty(value = "角色简介", required = true, example = "负责网络数据")
    @NotNull(message = "修改角色失败,必须填写简介!")
    /*角色简介*/
    private String description;

    @ApiModelProperty(value = "角色权限", required = true, example = "")
    /*角色权限*/
    private Long[] permissionIds;

    @ApiModelProperty(value = "角色序号", required = true, example = "76")
    @NotNull(message = "修改角色失败,必须填写序号!")
    /*角色序号*/
    private Long sort;

}
